package com.candy.pojo;

public class Comment {
    private Integer id;

    private Integer memberid;

    private Integer productid;

    private Integer quality;

    private Integer price;

    private String savetime;

    private String content;

    public Comment(Integer id, Integer memberid, Integer productid, Integer quality, Integer price, String savetime, String content) {
        this.id = id;
        this.memberid = memberid;
        this.productid = productid;
        this.quality = quality;
        this.price = price;
        this.savetime = savetime;
        this.content = content;
    }

    public Comment() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMemberid() {
        return memberid;
    }

    public void setMemberid(Integer memberid) {
        this.memberid = memberid;
    }

    public Integer getProductid() {
        return productid;
    }

    public void setProductid(Integer productid) {
        this.productid = productid;
    }

    public Integer getQuality() {
        return quality;
    }

    public void setQuality(Integer quality) {
        this.quality = quality;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getSavetime() {
        return savetime;
    }

    public void setSavetime(String savetime) {
        this.savetime = savetime == null ? null : savetime.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", memberid=" + memberid +
                ", productid=" + productid +
                ", quality=" + quality +
                ", price=" + price +
                ", savetime='" + savetime + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}